Dynamic quests in game

ABSTRACT

Methods, systems, and computer programs are presented for executing a game and for creating computer-generated game quests, which are referred to as dynamic quests. One method includes an operation for identifying a template for creating a dynamic quest. The dynamic quest includes quest tasks and quest rewards, which are provided to a player upon completion of the quest tasks in the game. The template includes template tasks and template rewards. Further, the method includes an operation for selecting one or more template tasks for the quest tasks, and an operation for selecting one or more template rewards for the quest rewards. The dynamic quest is created in the game with the selected one or more template tasks and the selected one or more template rewards.

CLAIM OF PRIORITY

This application is a Continuation application under 35 USC § 120 ofU.S. patent application Ser. No. 14/930,315, filed on Nov. 2, 2015,(U.S. Pat. No. 9,731,207, issued on Aug. 15, 2017), entitled “DynamicQuests In Game,” and which further claims priority to U.S. applicationSer. No. 13/457,316, filed on Apr. 26, 2012 (U.S. Pat. No. 9,174,128,issued on Nov. 3, 2015), entitled “Dynamic Quests In Game,” which areherein incorporated by reference.

BACKGROUND 1. Field of the Invention

The present embodiments relate to methods for executing games in adistributed environment, and more particularly, methods, systems, andcomputer programs for creating computer-generated quests in a game.

2. Description of the Related Art

Same games provide challenges to players, where the challenges entailthe completion of one or more tasks within the game. As the playercompletes each challenge, the player receives rewards and new challengesare provided to continue the game. The challenges, sometimes referred toas quests, are typically created by development engineers that manuallydraft tens or hundreds, or maybe even thousands of different challengesfor the players. A large number of available challenges in the gamemakes more difficult that players run out of challenges, which wouldcause players to leave the game because there is nothing else to do inthe game. After a while, some experienced players may run out ofchallenges, causing these experienced players to leave the game.

Additionally, some players may dislike some of the challenges offered bythe game, causing these players to ignore these disliked challenges andcontinue looking for new challenges that are more appealing. However,creating challenges is a time consuming task that requires humanintervention.

In order to keep expert players engaged in the game, and to providechallenges to the liking of every player, a system is desired that wouldcreate a large amount of challenges at a minimum cost in order to keepplayers engaged in the game for longer periods of time.

It is in this context that embodiments arise.

SUMMARY

Embodiments of the disclosure provide methods, systems, and computerprograms for executing a game and for creating computer-generated gamequests, also referred to as dynamic quests.

It should be appreciated that the present embodiments can be implementedin numerous ways, such as a process, an apparatus, a system, a device,or a method on a computer readable medium. Several embodiments aredescribed below.

In one embodiment, a method for executing an online game is provided,and the method includes an operation for identifying a template forcreating a dynamic quest. The dynamic quest includes one or more questtasks and one or more quest rewards, which are provided to a player uponcompletion of the one or more quest tasks in the online game. Inaddition, the template includes a plurality of template tasks and aplurality of template rewards. Further, the method includes an operationfor selecting one or more template tasks for the quest tasks, and anoperation for selecting one or more template rewards for the questrewards. The dynamic quest is created in the online game with theselected one or more template tasks and the selected one or moretemplate rewards, and the operations of the method are executed by aprocessor.

In another embodiment, a distributed game server includes a game enginemodule and a quest engine module. The game engine module provides onlinegame capabilities to a plurality of users, and the quest engine moduleassigns quests to users of the online game. The quests include craftedquests, which are created manually, and dynamic quests, which arecreated by the quest engine module based on a template from a pluralityof templates. Each dynamic quest includes one or more quest tasks andone or more quest rewards, which are provided to a player uponcompletion of the one or more quest tasks in the online game. Inaddition, each template from the plurality of templates includes aplurality of template tasks and a plurality of template rewards.

In yet another embodiment, a computer program, embedded in anon-transitory computer-readable storage medium, when executed by one ormore processors, for executing an online game, is provided. The computerprogram comprises program instructions for identifying a template forgenerating a dynamic quest. The dynamic quest includes one or more questtasks and one or more quest rewards, which are provided to a player uponcompletion of the one or more quest tasks in the online game. Thetemplate includes a plurality of template tasks and a plurality oftemplate rewards. The computer program further includes programinstructions for selecting one or more template tasks for the questtasks, and program instructions for selecting one or more templaterewards for the quest rewards. The dynamic quest is created in theonline game with the selected one or more template tasks and theselected one or more template rewards.

Other aspects will become apparent from the following detaileddescription, taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The embodiments may best be understood by reference to the followingdescription taken in conjunction with the accompanying drawings.

FIG. 1 shows an interface for playing an online game within the frame ofa social network, according to one embodiment.

FIG. 2 shows the stage of an online game, according to one embodiment.

FIG. 3 illustrates a quest provided to a player in the game, accordingto one embodiment.

FIG. 4 depicts the structure of a template for generating dynamicquests, in accordance with one embodiment.

FIG. 5 illustrates a dynamically generated quest, according to oneembodiment.

FIG. 6 is a simplified schematic diagram of a system for implementingembodiments described herein.

FIG. 7A illustrates a sample data structure to store player game data,according to one embodiment.

FIG. 7B illustrates a sample data structure to hold dynamic quest data,according to one embodiment.

FIG. 8A shows the flow of a process for generating a quest, according toone embodiment.

FIG. 8B shows a flowchart illustrating an algorithm for creating dynamicquests in accordance with one embodiment.

FIG. 8C illustrates some of the interactions between the game engine andthe quest engine, according to one embodiment.

FIG. 8D illustrates the logic utilized for generating dynamic quests, inaccordance with one embodiment.

FIGS. 9A-9E illustrate exemplary data structures and interactions,according to one embodiment.

FIG. 10A shows a block diagram illustrating a social gaming networkarchitecture, according to one embodiment.

FIG. 10B illustrates an implementation of a Massively Multiplayer Online(MMO) infrastructure, according to one embodiment.

FIG. 11 illustrates an example network environment suitable forimplementing embodiments.

FIG. 12 illustrates an example computer system for implementingembodiments.

DETAILED DESCRIPTION

The following embodiments describe methods, computer programs, systems,and apparatus for creating computer-generated quests in a game.Embodiments provide the ability to generate a large number of quests(e.g., 80,000 or more) without a person having to create each questmanually. The quests may be generated on demand on a server and thenpropagated to the clients, or may be buffered in advance of the playerneeding the assignment of a new quest.

It will be apparent, that the present embodiments may be practicedwithout some or all of these specific details. In other instances, wellknown process operations have not been described in detail in order notto unnecessarily obscure the present embodiments.

FIG. 1 shows an interface for playing an online game within the frame ofa social network, according to one embodiment. FIG. 1 illustrates awebpage 102 loaded on a social network website. In one embodiment, theonline game is played within the webpage 102 of the social network in agame area 102, which is defined for playing the online game in thesocial website. In addition, webpage 102 may include other elements,such as advertisement area 104, game promotional area 106, etc.

The embodiment of FIG. 1 shows a screen capture for the game PioneerTrail, formerly known as FrontierVille, provided by Zynga Inc., theassignee of the present application, but the principles presented hereinmay be applied to other online games, as well as to games that are notplayed online.

The Pioneer Trail is a simulation, role-playing video game available forplay on social networking sites. The player plays the role of a pioneerof the American old west and utilizes an avatar which resembles apioneer. The player may complete collections which may be traded forcoins, experience points (XP), decorations, livestock, trees, craftableitems, energy and horseshoes (rare money that can be bought with realmoney). The player may also finish goals which include tasks such asgathering money, buying energy, clearing land, chopping down trees,raising livestock and trees, creating items such as beds, furniture, andclobbering unwanted pests like bears, snakes, foxes and groundhogs.Eventually the player may acquire a spouse and have children.

Other tasks include collecting from buildings, building inns, wagons,general stores, cabins, schools, chicken coops, barns, trading posts,barber shops, churches, and sawmills as well as seeding, growing andharvesting crops. Coins enable the player to purchase decorations,buildings, crops, trees and animals. Horseshoes, which can be earnedin-game or purchased through real-world cash or credit, allow the playerto buy mules and horses, paint buckets, hand drills, nails, bricks,hammers, etc. These items are essential for completing certain goals.Friends may also “gift” some items to the player, which is referred toherein as a viral interaction.

Crops may be planted and must be harvested before they wither, and thecrops with longer maturation times provide larger payoffs. Harvestingmay trigger encounters with ground hogs, which must be “clobbered” toavoid using extra energy within their area of influence. Clobberingpests and harvesting crops yield coins, XP, and food. Food can be usedto get energy, which is necessary to do many actions in the game. Energycan be purchased in exchange for food or horseshoes. When the playerruns out of energy, the player must either purchase more energy withfood or horseshoes, or wait for more energy to build up over time.

Animals may be purchased and harvested routinely for resources, or soldoutright for a large one-time reward. The animals start out as juvenilesand must be fed several times to grow into adults. Players can alsoplant fruit trees, such as cherry, apple, pear, peach, apricot, etc.,and their fruits may be collected when the trees reach maturity.

FIG. 2 shows the stage of an online game, according to one embodiment.The online game of FIG. 2 can be played in game area 102 of FIG. 1, butthe online game can also be played in other environments. The gameincludes avatar 220, which can be manipulated by the player, such as byclicking the mouse around the play area. For example, if the mouse isclicked somewhere far away from the avatar, the avatar is moved to thefaraway place, unless the mouse is clicked on some other game objectthat causes an in-game action (e.g., if the mouse is clicked on ananimal, the avatar feeds the animal).

As the player advances in the game, the player acquires assets, whichcan take multiple forms. In one embodiment, assets include first virtualcurrency asset 202, second virtual currency 228, wood asset 204, foodasset 206, energy asset 208, sheep asset 222, haystack asset 224,dancing bear asset 226, badges, badge collections, temporally tieredlevels, bonuses, promotions, penalties, digital content (e.g., imagefiles, icons, audio files, video files), gifts, tokens, honor title,rewards, invitation permissions, avatars, rally points, diaries,footprints, trophies, competitions, engagement modes, user difficultymodes (e.g., novice, intermediate, expert), stars, medals, gems, pets,exploration quests, etc. Each asset can be used for one or morepurposes. For example, first virtual currency 202 can be used during thegame to make progress, also referred to herein as advancement. The firstvirtual currency 202 can be used to acquire assets (e.g., animals orcrops), to remove an obstacle in the game (e.g., enabling progress thatwould otherwise be blocked), or to complete a task (e.g., finishdecorating a house).

In particular embodiments, the first and the second virtual currenciesare used for different purposes, although some assets may be bought witheither of the currencies. The first virtual currency has a higherpurchasing value than the second virtual currency. For example the firstvirtual currency can unblock some obstacles in the game that the secondvirtual currency cannot. Although a small amount of first virtualcurrency may be given to the player as the game starts, a player needsto purchase more first virtual currency with real currency, alsoreferred to herein as legal currency, real-world currency, or real cash.This provides a revenue stream for the online game provider.

Some multiuser online games are styled after casino gambling games(e.g., poker, roulette, slot machines, etc.). In a gambling game,players generally obtain virtual currency for their character's use inthe gambling game. In some gambling games and in other online games,players purchase virtual currency in exchange for legal currency, wherethe legal currency is transferred using a credit, debit, or charge cardtransaction conveyed over a financial network. In such games, thevirtual currency may be represented by virtual poker chips or by anumber or a value stored by the server for that player's benefit. Aplayer interacts with the game server such that the player (or acharacter controlled by the player) plays a gambling game in hopes ofincreasing the amount of virtual currency.

In one embodiment, the online game includes quests 212, which may alsobe referred to as missions, goals, challenges, etc. The quests identifyone or more tasks that the player must complete before the quest isconsidered satisfied or finished. For example, a request may requirethree tasks: chopping down a tree, feeding an animal, and planting anapple tree. Upon completion of the quest, the player is rewarded in somefashion, such as getting a new asset, increasing the amount of energy,getting more virtual currency, etc. As the player completes tasks andquests, the game score 210 is increased, and as the game score increasesthe experience level may also increase.

Clicking on inventory icon 216 causes the online game to display a listof all the items or assets owned by the player. In addition, clicking onmarketplace icon 218 takes the player to a virtual marketplace whereassets can be acquired. As described above, assets can be from withindifferent categories such as crops, trees, animals, buildings,decorations, energy, special items, weapons, etc. Each category includesa plurality of assets within the category. For example, the animalcategory includes ducks, chickens, goats, sheep, pigs, etc. Some of theitems within a category can be freely acquired by the player, whilepurchasing of some items can be blocked until certain game condition ismet, such as reaching some score, finishing a quest, purchasing theability to unblock the blocked item, etc.

In one embodiment, avatar 220 may be personalized by the player, i.e.,the avatar is defined by a personal expression configured by the player.The personal expression may include type of skin, hair color, mouth,eyes, gender, age, clothing, etc. In one embodiment, the personalexpression can be improved by acquiring personal-expression assets, suchas fancy clothing (e.g., shoes, suits, hats). Acquisition ofpersonal-expression items is made with virtual currency, in oneembodiment.

In one embodiment, the online game is an online social game, whichleverages social relationships between the player and other online gameplayers socially linked to the player. For example, the player may add aneighbor to the game by inviting a friend from a social networking site.There are several online social networks run and maintained by variouscompanies, and any one of these companies can provide access to socialgraph data. One such company, without limitation to others, may includeFacebook. Once a friend accepts being a neighbor, a social relationshipis established in the game where the game played by the player and thegame played by the neighbor can interact with each other. For example,the player may visit the home of the neighbor and perform some gameactivities therein, and will be rewarded for doing so. Some of thequests in the game may include social activities that promote theinteraction between players. For example, one quest may include plantingtomatoes in the neighbor's farm. Therefore, the social interaction canprovide advancement for the player and for the neighbor.

It is noted that the embodiments illustrated in FIG. 2 are exemplary.Other embodiments may utilize different assets, quests, socialinteractions, etc. The embodiments illustrated in FIG. 2 shouldtherefore not be interpreted to be exclusive or limiting, but ratherexemplary or illustrative.

FIG. 3 illustrates a quest provided to a player in the game, accordingto one embodiment. FIG. 3 shows a quest whose design and logic have beencreated by a human designer (e.g., a design engineer or a productmanager), i.e., the quest has been manually created by a person. Queststhat are created manually are referred to herein as crafted quests, ormanual quests, which are different from dynamic quests, which are thosequests generated by a processor executing a computer program thatgenerates the logic and features of the quests. In other words, adynamic quest is a computer-generated quest.

The crafted quest 302 of FIG. 3 includes title 308 (e.g., “Takin TheWeight!”), fiction 304, one or more tasks 312, one or more rewards 318,and a hint 316. It is noted that the embodiment illustrated in FIG. 3 isexemplary. Other embodiments may utilize additional elements, or mayinclude fewer or more items than the ones included in FIG. 3. Theembodiment illustrated in FIG. 3 should therefore not be interpreted tobe exclusive or limiting, but rather exemplary or illustrative.

The fiction 304 is a sort textual description that provides backgroundinformation regarding the quest to be performed. For example, thesection 304 may describe a problem with the player's avatar, or withsome other character in the game, which requires the player to performsome tasks in order to solve this problem.

Each task 312 includes an action that must be performed by the user inthe game. In one embodiment, some tasks are related to an object, andcompletion of the tasks requires performing an action on the object. Forexample, one object may be a cow, and a related task may be “tending thecow.” Other tasks do not require performing an action on an object, suchas for example “visiting a neighbor.”

The action may have to be done once or may have to be repeated multipletimes in order to complete the task in the quest. A counter 310indicates how many times the player has performed the action, and thetotal number of times required to complete this task (e.g., 5/30 meansthat the player has performed the action, such as clearing wildflowers,5 times out of 30). Further, the task includes an unlock option 314 tocomplete (e.g., unlock) the task by spending game currency (e.g., goldhorseshoes). In one embodiment, an icon 306 is associated with the taskand provides a graphical representation related to the task.

Some tasks may be viral tasks, which require the cooperation fromanother player. In one embodiment, a button 320 provides the player theoption to open a dialogue to originate a request for one or more friendsto help with the viral task.

A quest may include one or more non-viral tasks and one or more viraltasks. It is noted that the embodiment illustrated in FIG. 3 isexemplary. Other embodiments may utilize a different number of tasks anddifferent types of tasks. For example, in one embodiment, the questincludes one non-viral task and one viral task, but other combinationsare also possible. One quest may include non-viral tasks exclusively andanother quest may include viral tasks exclusively. The embodimentsillustrated in FIG. 3 should therefore not be interpreted to beexclusive or limiting, but rather exemplary or illustrative.

In one embodiment, the quest includes a hint 316 that gives the player aclue on how to complete one or more of the tasks. Further, the questincludes one or more rewards, which the player gains when the quest iscompleted, e.g., all the tasks are completed. The reward may include anew asset for the player or an increase in one or more of the assetscurrently owned by the player. For example, the reward may includeadding virtual currency, adding energy to play the game, getting a newcow, obtaining an item for a collection in the game, etc.

FIG. 4 depicts the structure of a template for generating dynamicquests, in accordance with one embodiment. Embodiments of thespecification create dynamic quests, which are quests that are generatedby a processor executing a computer program without direct humanintervention. In one embodiment, the dynamic quests are created when theuser requests a new quest, and in another embodiment, the dynamic questsare created in advance and placed in a buffer of quests where the questsare stored until the quests are needed.

Advanced players may complete all the game-crafted quests and run out ofthings to do. With dynamic quest generation, advanced players do not runout of quests to perform because the system generates new quests asneeded.

The quest generation system utilizes a plurality of quest templates,which can be customized to generate thousands (or millions) of differentquests. Each template offers a plurality of different elements, and afew of those elements are selected to generate a quest. During dynamicquest generation, the quest generation system selects one or more of thetasks in the template to create the dynamic quest.

In one embodiment, a template 402 to generate dynamic quests includes: aplurality of titles 404, a plurality of fictions 406, a plurality oftasks 408, a plurality of viral tasks 418, and a plurality of rewards420. Each title 404 provides a textual description for the dynamicquest, and one of the titles from the template (e.g., “Help Aunt Lucy”)is selected for the new dynamic quest.

The fiction 406 provides a textual description that is added to thedynamic quest (e.g., “Aunt Lucy is sick. She needs food and medicine.Bring food and medicine to Aunt Lucy”), and is presented to the userwhen the dynamic quest is given. More details on an example of a dynamicquest are provided below with reference to FIG. 5. In one embodiment,the fictions 406 and the titles 404 are generic so any title and anyfiction may be combined with any task and any reward. In anotherembodiment, certain fictions may only be used with certain titles, andsome titles may only be used with a predetermined set of the possiblefictions.

In one embodiment, each task 408 includes a plurality of objects 410, aplurality of icons 414, and a plurality of hints 416. The object 410(e.g., “watermelon”) refers to an item in the game that is associatedwith the task to be performed. For each object 410, there are one ormore possible actions 412 (e.g., “Harvest 10 watermelons”) that may beperformed on the object. In one embodiment, the icons 414 are notassociated with the object, and in another embodiment the icons 414 arerelated to the object. For example, a figure of a watermelon may be anicon for the watermelon object. In addition, in another embodiment,hints 416 (e.g., “Go to market to purchase watermelon seeds”) areprovided to guide the user towards the completion of the task. The hintmay be related to the object or may be a generic hint.

Viral tasks 418 include tasks that require a social interaction with afriend playing the game. In one embodiment, a viral task may also beassociated with an object. For example, a viral task may be “ask friendsfor wood boards,” where the wood boards are objects associated with theviral task. In another embodiment, the viral task 418 is not associatedwith an object (e.g., “Get 3 helping hands”).

In one embodiment, the rewards 420 include a plurality of reward items422, and each reward item 422 (e.g., a coin) has an associated rewardicon 424 (e.g., image of a coin or coins symbolizing currency).

In one embodiment, each template is associated with a theme, and thetasks generated with the template relate to the underlying templatetheme. In one embodiment, the theme is selected from a group consistingof animals, cooking, farming, building, gambling, games of chance,puzzles, fighting, battles, strategy, fantasy, cops and robbers, orcleaning, but other themes are also possible.

It is noted that the embodiment illustrated in FIG. 4 is exemplary.Other embodiments may utilize different fields, additional fields, fewerfields, or the same fields arranged in a different fashion. Theembodiment illustrated in FIG. 4 should therefore not be interpreted tobe exclusive or limiting, but rather exemplary or illustrative.

FIG. 5 illustrates a dynamically generated quest 502, according to oneembodiment. In one embodiment, the player of the game is not awarewhether a certain task is a crafted task or is a dynamic task, becausethe two types appear similar to the user. The dynamic quest 502 of FIG.5 is similar to the crafted quest 302 of FIG. 3 and contains similarelements. In another embodiment, an indicator is presented to the playerletting the player know whether the quest is crafted (e.g., was createdduring the development of the game) or the quest has been dynamicallygenerated by the system. The crafted quests and dynamic quests may havea different appearance.

The dynamic quest 502 includes title 308; fiction 304; a plurality oftasks 312 and 322; rewards 318 and 516; and timer 522 indicating howmuch time is left for finishing the quest. In one embodiment, one icon506 is presented for each of the tasks. Some quests have a timer ordeadline for finishing the quest and the player is given a fixed amountof time to finish all the tasks in the quest.

In one embodiment, the player has the ability to abandon a quest if theplayer does not desire to complete the quest. A new quest may then begenerated for the player. To avoid having a player abandoning too manyquests, the player gets charged with some penalty after abandoning apredetermined number of quests. In one embodiment, the penalty getsbigger as the number of abandoned quests grows. In one embodiment, thecounter of abandoned quests may be reset or decreased after the playercompletes one or several quests. The penalty may be the loss of somegame currency or some other game asset. In another embodiment, a playerthat abandons a predetermined amount of quests gets charged a penaltyfor getting new quests.

Dynamic quests may be utilized not only with experienced users, but alsowith beginner and intermediate users, because quests may be dynamicallygenerated at any time during the game. If the game does not have manycrafted quests, the use of dynamic quests enable players to stayinterested in the game and play for a longer period of time.

FIG. 6 is a simplified schematic diagram of a system for implementingembodiments described herein. In one embodiment, a distributed gameserver 602 provides game services to online users. The users play thegame 604 on a computing device to access to the distributed game serverservices via network 606. In one embodiment, the game is played on abrowser, but other types of computing platforms may also be utilized.

The user game 604 may include dynamic quests (DQ) (e.g., DQ₇, DQ₉, DQ₁₄,and DQ47) or crafted quests (CQ) (e.g., CQ₆, CQ₁₇, CQ₄₈, and CQ56). Thedistributed game server 602 includes a game engine 616 and a questengine 618. The game engine 616 provides the computing resourcesrequired to play one or more online games 624 by a plurality of users.The game engine is also referred to as the game server, and more detailsare provided below with reference to FIGS. 9 and 10.

Game data 610 for the players is kept in a database and is accessibleby, at least, the game engine and the quest engine 618. The game dataincludes a profile of the user, experience level, inventory of assets,dynamic quests pending, crafted quests pending, etc.

The quest engine 618 manages the operation of game quests, including thecreation, monitoring, deletion, expiration, and buffering of quests. Thequest engine 618 includes a quest manager 620, a quest generator 622,and several databases containing quest data. The quest manager 620manages the quest system and interfaces with the game engine 616, thequest generator 622, and quest databases. In addition, the quest manager620 access different types of game-related information, such as gamedata 610, and game status 624.

The game engine 616 sends quest related requests to the request managerand may also access the quest data directly from the quest databases.The quest manager 620 performs the quest related operations requested bythe game engine 616 and returns the appropriate data or statusinformation to the game engine.

It is undesirable that the player waits a long time to obtain newdynamic quests after the previous quest is completed. In one embodiment,a buffer defined to hold 3 or more quests is kept for each player. Thequest databases include a quest buffer database 626, a crafted questdatabase 628, a dynamic quest database 630, and a quest templatedatabase 632. The quest buffer database 626 includes dynamicallygenerated quests which are readily available in case a user requests anew quest. In one embodiment, the buffered quests are placed in thedatabase indexed by user, which means that the system generates questswith each user in mind, taking into account the game status, the profileinformation of the user, and the game history of the user. In oneembodiment, 3 quests are buffered per user, but other number of bufferedquests is also possible. Further, the system may create a differentnumber of buffered quests according to the level of the user, or thepast history of the user. For example, the system may offer a largernumber of quests for a very active user, while offering fewer quests, ifany, for players with low activity or with a beginner status.

In another embodiment, the system creates a pool of quests that are madeavailable to whichever user requests a new quest. This way, it is easierto guarantee that quests are available for any requesting user. Ofcourse, the system may utilize a quest delivery algorithm to filter thebuffered quests in order to assign quests that are not repetitive, toodifficult, or too easy to the same user. For example, the system mayselect one quest from the buffer and see if the selected quest matches aquest assignment criteria before delivering the quest to the player. Ifthe criteria is met, the quest is delivered. Otherwise, the process isrepeated with other quests extracted from the buffer until a quest meetsthe quest assignment criteria.

The crafted quest database 628 includes crafted quests that have beencreated by game developers, such as for example some quests createdbefore the game is made available to players. Of course, otheradditional crafted quests may be added to the crafted quest database 628over time.

The dynamic quest database 630 contains, as its name indicates, dynamicquests generated by the system. In one embodiment, dynamic quests areadded to the system over time. The dynamic quests can be transferredfrom the quest buffer database or may be created by the quest generatorand added to the dynamic quest database 630. In one embodiment, thedynamic quests are deleted from the database a predefined amount of timeafter completion (e.g., a week, six months, a year, etc.), and inanother embodiment the completed dynamic quests are kept in thedatabase.

The quest template database 632 holds the quest templates utilized togenerate dynamic quests. When the quest generator 622 receives a requestto provide a new dynamic quest, the quest generator generates a newquest and places the new quest in the quest buffer database or in thedynamic quest database. The quest generator utilizes game history andother game related information, such as user profile 612, user socialdata 614, etc., to generate the quests. More details are provided belowwith reference to FIGS. 8A-8D regarding the methods for generatingdynamic quests.

In addition, the quest generator 622 periodically checks the questbuffer database 626 and creates new dynamic quests to add to the questbuffer database, as needed. In one embodiment, the quest buffer databaseincludes three dynamic quests per user, and the quest generator 622 addsnew dynamic quests to the quest buffer database so each user has threebuffered dynamic quests.

In one embodiment, when a problem is detected with the generation ofdynamic quests (e.g., a template used to generate quests has been founddefective) the quest generator 622 performs a cleanup operation of thequest buffer database 626 by deleting the suspect dynamic quests fromthe buffer. After the suspect dynamic quests are eliminated, the questgenerator 622 proceeds to generate new dynamic quests in order to fillthe buffer.

One of the advantages of generating dynamic quests in the distributedgame server 602 is that a malicious player does not have the opportunityto perform malicious operations on the quest generating system, whichmay be the case if the quests were generated at the client. For example,a malicious user may be able to generate easy quests that would producea large amount of undeserved rewards. By generating the dynamic questsin the game server platform, the opportunity for malicious users togenerate improper dynamic quests is eliminated or greatly reduced.

In one embodiment, the quest generator 622 utilizes a caching mechanismto recycle dynamic quests in order to assign the same dynamic quests tomultiple users. This reduces the amount of CPU required by the questgenerator 622 because the number of generated dynamic quests is reduceddue to the reuse of some, or all, of the dynamic quests. In thisembodiment, a pool of dynamic quest is generated and then when theplayer requests a new quest, the new dynamic quest is taken from thepool of dynamic quests. Of course, the system keeps track of the questsalready served to a particular user in order to avoid repetition.

It is noted that the embodiments illustrated in FIG. 6 are exemplary.Other embodiments may utilize different elements, or the functionalityof one or more elements may be combined or distributed over a differentnumber of components. The embodiments illustrated in FIG. 6 shouldtherefore not be interpreted to be exclusive or limiting, but ratherexemplary or illustrative.

FIG. 7A illustrates a sample data structure to store player game data,according to one embodiment. In one embodiment, game data 610 for aplayer includes currency data, dynamic quest data, crafted quest data,asset data, and achievement data. The currency data includes an amountof virtual currency held by the player for one or more types of virtualcurrency (e.g., currency #1, currency #2, etc.) utilized in the game.Dynamic quest data includes a list of the dynamic quests that have beencompleted or that are in progress (e.g., DQ 7, DQ 9, etc.).

In one embodiment, the crafted quest data includes a list of craftedquests (e.g., CQ6, CQ17, etc.) that have been completed or that are inprogress. The asset data includes the items owned by the player in thegame, such as building materials, food, housing, spouse or othernon-player characters, etc. The achievement data includes a list ofaccomplishments in the game, such as experience level, badges earned,gifts received, collections completed or in progress, etc.

FIG. 7B illustrates a sample data structure to hold dynamic quest data,according to one embodiment. Some players do not like to do certaintasks. One of the advantages of dynamic generation of quests is thatdynamic quests give the player the option of performing quests thatinclude tasks that the player likes to perform (e.g., viral requests).

In one embodiment, the player is able to perform the crafted quests andthe dynamic quests simultaneously, that is, the user may alternateperforming tasks of dynamic quests with task from crafted quests. Forexample, in some games were the player has a Homestead, the sameHomestead is utilized for performing dynamic and crafted quests.

Further, it is not desirable to have to fetch data from the templateswhen the user is playing the game. Therefore, in one embodiment, all thedata required for performing the dynamic quest is kept in the dynamicquest data structure.

In one embodiment, the dynamic quest includes the title, one or morefictions, the starting time, the completion deadline (if any), one ormore hints, the template utilized to generate the dynamic quest, thedifficulty level, one or more rewards, one or more tasks, etc. In oneembodiment, each task is associated with an object, an action associatedwith that object, an icon, the number of times the task has to berepeated for completion of the requirement in the dynamic quest, thenumber of times that the task has been completed (e.g., 3 out of 20),the cost in virtual currency required to unlock the task (e.g., how muchwould cost the player to unlock this task and consider it completewithout having to actually perform the task), etc. In addition, some ofthe tasks may be viral tasks, and may include viral information (notshown) such as date of the viral request, friends that received theviral request, etc.

It is noted that the embodiment illustrated in FIG. 7B is exemplary.Other embodiments may utilize different fields, or arrange the fields indifferent fashion. The embodiment illustrated in FIG. 7B shouldtherefore not be interpreted to be exclusive or limiting, but ratherexemplary or illustrative.

In one embodiment, the data structure for holding a dynamic quest isdefined in programming language as follows:

[HarvestCrops_0] => Array  ([name] => HarvestCrops_0  [startTime] =>1327546140  [expireTime] => 1328755740  [config] => Array   ([fiction]=> HarvestCrops_Fiction_2   [tasks] => Array    ([0] => Array    ([trigger] => performActionOnObject     [text] => HarvestCrops_task    [type] =>     [data] => Array      ([objects] => Array       ([item]=> Array        ([watermelon] => Array         ([name] => watermelon ) ))      [actions] => Array       ([action] => Array        ([harvest] =>Array      ([name] => harvest)     [harvestcrop] => Array      ([name]=> harvestcrop ) ) )   [states] => Array ( ) )  [icon] =>assets/quests/qd_harvest_watermelon.png [hint] => quest_hint_market[unlockable] => 90 [total] => 18) [1] => Array  ([trigger] =>checkCollectedResource [type] => [data] => Array  ([resources] => Array  ([resource] => Array     ([dqs_teamwork] => Array      ([name] =>dqs_teamwork)))) [total] => 12 [feed_name] => dqs_teamwork [icon] =>assets/crafting/dqs_teamwork.png   [unlockable] => 84   [text] =>dqs_teamwork_task   [hint] => dqs_teamwork_hint )) [npc] => doc [reward] => Array   ([dqs_teamwork] => −12   [xp] => 900   [gold] =>900   [saloon_green_lightning] => 2 )  [rewardIcons] => Array   ([xp] =>assets/doobers/xp.png   [gold] => assets/doobers/coin_50.png  [saloon_green_lightning] => assets/saloon_light.png)) [progress] =>Array  ([0] => 0  [1] => 2 ) [statID] => 1002035003002050 [purchased] =>Array  ([0] => 0 [1] => 0 ))

FIG. 8A shows the flow of a process for generating a quest, according toone embodiment. When a player requests a new dynamic quest, the requestis sent to the quest engine at the distributed game server. In operation802, a quest template is selected at random for generating the dynamicquest. In another embodiment, an algorithm containing template selectionrules is utilized to select the template. The rules to select thetemplate may be based on player characteristics, player social data,experience level, number of quests completed, number of questsabandoned, player-preferred themes, etc. The system keeps track of thetemplates and tasks utilized for this user, in order to avoidrepetition. In one embodiment, the same template is not used twice in arow for the same player.

From operation 802, the method continues to operation 804 where one ormore tasks are selected for inclusion in the new dynamic quest. In oneembodiment, the tasks are selected at random, but other criteria mayalso be possible. In another embodiment, a random generated quest ischecked to determine if the task has been utilized recently to generateanother dynamic quest for this player. If the task has been recentlyused, the task is discarded and a new random task is generated. Theprocess is repeated until the dynamic quest is completed with all thenecessary tasks.

In one embodiment, the quest manager checks whether the player has theability to perform the selected tasks. If the player does not have theability to perform these selected tasks (e.g., the player does not havethe ability to get an item to complete the task or does not have therequired experience level), the task is discarded and a new task isselected for the dynamic quest.

In one embodiment, the quest generator checks that the new tasks havenot been utilized for a predetermined number of most recent dynamicquests. For example, the quest manager checks that a new task is not oneof the last three tasks assigned to the player, although a differentnumber of tasks may be utilized in order to provide a different degreeof variety.

From operation 804, the method continues to operation 806 where one ormore viral tasks are generated from the template. As in the case ofnon-viral tasks, the system also checks that the generated viral taskhas not been assigned to the player recently, in order to providevariety in the game.

Further, in operation 808, the difficulty of the selected tasks (i.e.,the difficulty of the dynamic quest) is calculated in order to generatean appropriate reward, which is appropriate for the difficulty of thedynamic quest. In one embodiment, the difficulty of each task iscalculated based on the cost, in virtual currency, to “unlock” the taskwithout having to actually perform the task. For example, if a taskrequires 4 horseshoes to unlock, the difficulty will be based on the 4horseshoes.

In another embodiment, the system tracks the completion rates of theassigned tasks, as well as the abandonment rate for those tasks. Thedifficulty of each of the tasks is then calculated based on performanceparameters, such as completion rate, timing required to completion,abandonment rate, order in which tasks are completed within the quest,cost to “unlock” the task, etc.

From operation 808, the method continues to operation 810 where thereward is selected based on the difficulty of the selected tasks. Inaddition, the reward includes a certain degree of randomness to provideinterest in the game, so the player sometimes get larger rewards,although sometimes the player may get smaller rewards.

After selecting the reward, the method flows to operation 812 wheretitle and fiction are selected for the quest. In one embodiment, thetitle and the fiction are selected at random. From operation 812, themethod continues to operation 814 where the quest is either given to theplayer or placed in a buffer for later delivery when the player requestsa new dynamic task.

FIG. 8B shows a flowchart illustrating an algorithm for creating dynamicquests in accordance with one embodiment. In operation 852, a templatefor generating a dynamic quest is identified (e.g., a template fromtemplate database 632 of FIG. 6).

From operation 852, the method flows to operation 854 where one or moretemplate tasks are selected for inclusion in the new dynamic quest beingcreated (e.g., one of the tasks 408 in quest template 402 of FIG. 4).After selecting the tasks, one or more template rewards are selected inoperation 856. The selected template rewards are included in thegenerated dynamic quest.

From operation 856, the method flows to operation 858, where the dynamicquest is created in the online game. The created dynamic quests includesthe selected one or more template tasks and the selected one or moretemplate rewards. In one embodiment, the operations of the method areexecuted by a processor.

FIG. 8C illustrates some of the interactions between the game engine andthe quest engine, according to one embodiment. As discussed above withreference to FIG. 6, the quest engine includes the quest manager and thequest generator. In operation 862, the game engine sends a request for adynamic quest to the quest manager. In operation 874, the quest managerchecks if a dynamic quest is available in the buffer of dynamic quests.If there is a dynamic quest available in the buffer, the quest managertakes a dynamic quest from the buffer and sends the dynamic quest 864 tothe game engine, which makes the dynamic quest available to the player.If there is no dynamic quest available in the buffer, the quest managersends a request 876 to the quest generator to create a new dynamicquest. After the quest generator creates a new quest, the questgenerator sends the new dynamic quest to the buffer 878. In oneembodiment, the quest generator sends the new quest to the questmanager, instead of saving the newly created dynamic quest in thebuffer.

After the quest manager receives the new dynamic quest from the questgenerator, the quest manager sends the dynamic quest to the game engine866, which makes the new dynamic quest available to the player.

When a quest times out (e.g., the deadline to finish the quest haspassed without the player completing the quest) or when a playerabandons the quest, the game engine notifies 868 the quest manager thatthe quest has timeout or has been abandoned. The quest manager logs thatthe quest has timed out or has been abandoned 880 and proceeds to deletethe dynamic quest from the database of pending dynamic quests 882. Afterthe dynamic quest is being deleted, the quest manager sends aconfirmation 870 to the game engine.

The quest manager checks periodically 884 the availability of dynamicquests in the buffer. For each player, the quest manager checks if thereis additional space in the buffer for a new dynamic quest. For example,in one embodiment each user has room in the buffer for three dynamicquests. Therefore, if a user has less than three dynamic quests in thebuffer, the quest manager requests a new dynamic quest 888 to the questgenerator. In response, the quest generator adds the new dynamic questto the buffer of the player 890.

FIG. 8D illustrates the logic utilized for generating dynamic quests, inaccordance with one embodiment. In one embodiment, as users play thegame 604, the game stage 610 is updated, which includes, among otherthings, updating the list of pending quests in the game. The questmanager 620 includes logic for the monitoring, creation, and deletion ofdynamic quests. The quest manager 620 monitors the inventory of activequests in the games of players by checking the game state 610.

When the quest manager 620 detects that a new quest is required (e.g.,because the number of quests is below a desired threshold, because aplayer needs a quest, because the buffer for the player has room foranother quest, or because a shared pool of quests has room for newquests, etc.), the quest manager 620 sends a request for a new quest toquest generator 622. After the quest generator 622 creates the newquest, as described above, the quest is added to the game, which causesthe game state 610 to be updated with the new quest. For example, thenew quest is presented to the user, or is placed in storage waiting forthe proper time to present the new quest to the user, such as when theuser clicks in an object of the game (e.g., a letter, a non-playercharacter, etc.) that causes the presentation of the quest to theplayer.

FIGS. 9A-9E illustrate exemplary data structures and interactions,according to one embodiment. FIG. 9A illustrates the use of datastructures in the dynamic quest system and the game engine, according toone embodiment. FIG. 9B illustrates another embodiment of a datastructure utilized by the quest manager to store quest data.

FIG. 9C illustrates the interface between the client and the server,according to one embodiment, when a dynamic quest request is originatedat the client. FIG. 9D illustrates the interface between the client andthe server, according to one embodiment, regarding the completion of adynamic quest. FIG. 9E illustrates an embodiment of an interface betweenthe client and the server for processing a batch of transactionsoriginated at the client, where the transactions are related to dynamicquest operations.

It is noted that the embodiments illustrated in FIGS. 9A-9E areexemplary, and some operations may be omitted and some added, so long asthe functionality of generating dynamic quests is provided. Otherembodiments may utilize different interfaces, perform operations in adifferent order, or utilize different data structures. The embodimentsillustrated in FIGS. 9A-9E should therefore not be interpreted to beexclusive or limiting, but rather exemplary or illustrative.

FIG. 10A shows a block diagram illustrating a social gaming networkarchitecture, according to one embodiment. In some implementations, aplurality of players (e.g., 251 a-251 f) may be utilizing a socialgaming network 250. Each player interacts with the social gaming networkvia one or more client devices (e.g., client devices 252 a-252 f). Theclients may communicate with each other and with other entitiesaffiliated with the gaming platform via communications network 255.Further, the players may be utilizing a social networking serviceprovided by a social networking server (e.g., social networking servers253) to interact with each other.

When a player provides an input into the player's client device, theclient device may in response send a message via the communicationsnetwork to the social networking server. The social networking servermay update the player profile, save the message to a database, sendmessages to other players, etc. The social gaming network may include asocial graph database 254, which stores player relationships, socialplayer profiles, player messages, and player social data.

The gaming servers 261 host one or more gaming applications, and performthe computations necessary to provide the gaming features to the playersand clients. One or more gaming databases 262 store data related to thegaming services, such as the gaming applications and modules, virtualgaming environment data, player gaming session data, player scores,player virtual gaming profiles, game stage levels, etc. The gamingservers may utilize the data from the gaming databases to perform thecomputations related to providing gaming services for the players.

Quest Servers 272 manage the quest system in the game, including thecreation, tracking, expiration, abandonment, and deletion of craftedquests and dynamic quests. A quest database 268 includes the crafted anddynamic quests in use in the social gaming network. In addition, a questbuffer database 270 holds a buffer of dynamically generated questsavailable in order to provide quick service to players that requests newquests.

FIG. 10B illustrates an implementation of an online game infrastructure,according to one embodiment. The online game infrastructure 476 includesone or more game servers 458, web servers (not shown), one or moresocial network management servers 462, and databases to store gamerelated information. In one embodiment, game server 458 provides a userinterface 460 for players 452 to play the online game. In oneembodiment, game server 458 includes a Web server for players 452 toaccess the game via web browser 454, but the Web server may also behosted in a server different from game server 458. Network 456interconnects players 452 with the one or more game servers 458.

Each game server 458 has access to one or more game databases 466 forkeeping game data. In addition, a single database can store game datafor one or more online games. Each game server 458 may also include oneor more levels of caching. Game data cache 464 is a game data cache forthe game data stored in game databases 466. For increased performance,caching may be performed in several levels of caching. For instance,data more frequently used is stored in a high priority cache, while datarequiring less access during a session will be cached and updated lessfrequently.

The number of game servers 458 changes over time, as the gaming platformis an extensible platform that changes the number of game serversaccording to the load on the gaming infrastructure. As a result, thenumber of game servers will be higher during peak playing times, and thenumber of game servers will be lower during off-peak hours. In oneembodiment, the increase or decrease of bandwidth is executedautomatically, based on current line usage or based on historical data.

One or more social network management servers 462 provide support forthe social features incorporated into the online games. The socialnetwork management servers 462 access social data 478 from one or moresocial networks 474 via Application Programming Interfaces (API) 472made available by the social network providers. An example of a socialnetwork is Facebook, but it is possible to have other embodimentsimplemented in other social networks. Each social network 474 includessocial data 478, and this social data 478, or a fraction of the socialdata, is made available via API 472. As in the case of the game servers,the number of social network management servers 462 that are active at apoint in time changes according to the load on the infrastructure. Asthe demand for social data increases, the number of social networkmanagement servers 462 increases. Social network management servers 462cache user data in database 468, and social data in database 470. Thesocial data may include the social networks where a player is present,the social relationships for the player, the frequency of interaction ofthe player with the social network and with other players, etc.Additionally, the user data kept in database 468 may include theplayer's name, demographics, e-mail, games played, frequency of accessto the game infrastructure, etc.

It is noted that the embodiment illustrated in FIG. 10B is an exemplaryonline gaming infrastructure. Other embodiments may utilize differenttypes of servers, databases, APIs, etc., and the functionality ofseveral servers can be provided by a single server, or the functionalitycan be spread across a plurality of distributed servers. The embodimentillustrated in FIG. 10B should therefore not be interpreted to beexclusive or limiting, but rather exemplary or illustrative.

FIG. 11 illustrates an example network environment 550 suitable forimplementing embodiments. Network environment 550 includes a network 560coupling one or more servers 570 and one or more clients 580 to eachother. In particular embodiments, network 560 is an intranet, anextranet, a virtual private network (VPN), a local area network (LAN), awireless LAN (WLAN), a wide area network (WAN), a metropolitan areanetwork (MAN), a portion of the Internet, another network, or acombination of two or more such networks 560.

One or more links 552 couple a server 570 or a client 580 to network560. In particular embodiments, one or more links 552 each includes oneor more wired, wireless, or optical links 552. In particularembodiments, one or more links 552 each includes an intranet, anextranet, a VPN, a LAN, a WLAN, a WAN, a MAN, a portion of the Internet,or another link 552 or a combination of two or more such links 552.

Each server 570 may be a stand-alone server or may be a distributedserver spanning multiple computers or multiple datacenters. Servers 570may be of various types, such as, for example and without limitation,quest server, web server, news server, mail server, message server,advertising server, file server, application server, exchange server,database server, or proxy server. Each server 570 may include hardware,software, embedded logic components, or a combination of two or moresuch components for carrying out the appropriate functionalitiesimplemented or supported by server 570. For example, a web server isgenerally capable of hosting websites containing web pages or particularelements of web pages. More specifically, a web server may hostHyperText Markup Language (HTML) files or other file types, or maydynamically create or constitute files upon a request, and communicatethem to clients 580 in response to Hypertext Transfer Protocol (HTTP) orother requests from clients 580. A mail server is generally capable ofproviding electronic mail services to various clients 580. A databaseserver is generally capable of providing an interface for managing datastored in one or more data stores.

In particular embodiments, one or more data storages 590 may becommunicatively linked to one or more severs 570 via one or more links552. Data storages 590 may be used to store various types ofinformation. The information stored in data storages 590 may beorganized according to specific data structures. In particularembodiments, each data storage 590 may be a relational database.Particular embodiments may provide interfaces that enable servers 570 orclients 580 to manage, e.g., retrieve, modify, add, or delete, theinformation stored in data storage 590.

In particular embodiments, each client 580 may be an electronic deviceincluding hardware, software, or embedded logic components or acombination of two or more such components and capable of carrying outthe appropriate functionalities implemented or supported by client 580.For example and without limitation, a client 580 may be a desktopcomputer system, a notebook computer system, a notebook computer system,a handheld electronic device, or a mobile telephone. A client 580 mayenable a network player at client 580 to access network 580. A client580 may enable its player to communicate with other players at otherclients 580. Further, each client 580 may be a computing device, such asa desktop computer or a work station, or a mobile device, such as anotebook computer, a network computer, or a smart telephone.

In particular embodiments, a client 580 may have a web browser 582, suchas Microsoft Internet Explorer, Google Chrome, Or Mozilla Firefox, andmay have one or more add-ons, plug-ins, or other extensions. A player atclient 580 may enter a Uniform Resource Locator (URL) or other addressdirecting the web browser 582 to a server 570, and the web browser 582may generate a Hyper Text Transfer Protocol (HTTP) request andcommunicate the HTTP request to server 570. Server 570 may accept theHTTP request and communicate to client 580 one or more Hyper Text MarkupLanguage (HTML) files responsive to the HTTP request. Client 580 mayrender a web page based on the HTML files from server 570 forpresentation to the user. The present disclosure contemplates anysuitable web page files. As an example and not by way of limitation, webpages may render from HTML files, Extensible Hyper Text Markup Language(XHTML) files, or Extensible Markup Language (XML) files, according toparticular needs. Such pages may also execute scripts such as, forexample and without limitation, those written in Javascript, Java,Microsoft Silverlight, combinations of markup language and scripts suchas AJAX (Asynchronous Javascript and XML), and the like. Herein,reference to a web page encompasses one or more corresponding web pagefiles (which a browser may use to render the web page) and vice versa,where appropriate.

Web browser 582 may be adapted for the type of client 580 where the webbrowser executes. For example, a web browser residing on a desktopcomputer may differ (e.g., in functionalities) from a web browserresiding on a mobile device. A user of a social networking system mayaccess the website via web browser 582.

FIG. 12 illustrates an example computer system 650 for implementingembodiments. In particular embodiments, software running on one or morecomputer systems 650 performs one or more operations of one or moremethods described or illustrated herein or provides functionalitydescribed or illustrated herein. Although methods for implementingembodiments were described with a particular sequence of operations, itis noted that the method operations may be performed in different order,or the timing for the execution of operations may be adjusted, or theoperations may be performed in a distributed system by several entities,as long as the processing of the operations are performed in the desiredway.

As example and not by way of limitation, computer system 650 may be anembedded computer system, a system-on-chip (SOC), a single-boardcomputer system (SBC) (such as, for example, a computer-on-module (COM)or system-on-module (SOM)), a desktop computer system, a laptop ornotebook computer system, an interactive kiosk, a mainframe, a mesh ofcomputer systems, a mobile telephone, a personal digital assistant(PDA), a server, or a combination of two or more of these. Whereappropriate, computer system 650 may include one or more computersystems 650; be stand-alone or distributed; span multiple locations;span multiple machines; or reside in a cloud, which may include one ormore cloud components in one or more networks. The one or more computersystems 650 may perform in real time or in batch mode one or moreoperations of one or more methods described or illustrated herein.

In particular embodiments, computer system 650 includes a processor 652,memory 654, storage 656, an input/output (I/O) interface 658, acommunication interface 660, and a bus 662. Although this disclosuredescribes and illustrates a particular computer system having aparticular number of particular components in a particular arrangement,embodiments may be implemented with any suitable computer system havingany suitable number of any suitable components in any suitablearrangement.

In particular embodiments, processor 652 includes hardware for executinginstructions, such as those making up a computer program. As an exampleand not by way of limitation, to execute instructions, processor 652 mayretrieve (or fetch) the instructions from an internal register, aninternal cache, memory 654, or storage 656; decode and execute them; andthen write one or more results to an internal register, an internalcache, memory 654, or storage 656. The present disclosure contemplatesprocessor 652 including any suitable number of any suitable internalregisters, where appropriate. Where appropriate, processor 652 mayinclude one or more arithmetic logic units (ALUs); be a multi-coreprocessor; or include one or more processors 652. Although thisdisclosure describes and illustrates a particular processor, thisdisclosure contemplates any suitable processor.

In particular embodiments, memory 654 includes main memory for storinginstructions for processor 652 to execute, or data that can bemanipulated by processor 652. As an example and not by way oflimitation, computer system 650 may load instructions from storage 656or another source (such as, for example, another computer system 650) tomemory 654. Processor 652 may then load the instructions from memory 654to an internal register or internal cache. During or after execution ofthe instructions, processor 652 may write one or more results (which maybe intermediate or final results) to the internal register or internalcache. Processor 652 may then write one or more of those results tomemory 654. One or more memory buses (which may each include an addressbus and a data bus) may couple processor 652 to memory 654. Bus 662 mayinclude one or more memory buses, as described below. One or more memorymanagement units (MMUs) reside between processor 652 and memory 654 andfacilitate accesses to memory 654 requested by processor 652. Memory 654includes random access memory (RAM).

As an example and not by way of limitation, storage 656 may include aHard Disk Drive (HDD), a floppy disk drive, flash memory, an opticaldisc, a magneto-optical disc, magnetic tape, or a Universal Serial Bus(USB) drive or a combination of two or more of these. Storage 656 mayinclude removable or non-removable (or fixed) media, where appropriate.In particular embodiments, storage 656 includes read-only memory (ROM).Where appropriate, this ROM may be mask-programmed ROM, programmable ROM(PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM),electrically alterable ROM (EAROM), or flash memory or a combination oftwo or more of these.

In particular embodiments, I/O interface 658 includes hardware,software, or both providing one or more interfaces for communicationbetween computer system 650 and one or more I/O devices. One or more ofthese I/O devices may enable communication between a person and computersystem 650. As an example and not by way of limitation, an I/O devicemay include a keyboard, keypad, microphone, monitor, mouse, printer,scanner, speaker, still camera, stylus, tablet, touch screen, trackball,video camera, another suitable I/O device or a combination of two ormore of these.

Communication interface 660 includes hardware, software, or bothproviding one or more interfaces for communication between computersystem 650 and one or more other computer systems 650 on one or morenetworks. As an example and not by way of limitation, communicationinterface 660 may include a network interface controller (NIC) ornetwork adapter for communicating with an Ethernet or other wire-basednetwork or a wireless NIC (WNIC) or wireless adapter for communicatingwith a wireless network, such as a WI-FI network. As an example,computer system 650 may communicate with a wireless PAN (WPAN) (such as,for example, a BLUETOOTH WPAN), a WI-FI network, a WI-MAX network, acellular telephone network (such as, for example, a Global System forMobile Communications (GSM) network), or other suitable wireless networkor a combination of two or more of these.

In particular embodiments, bus 662 includes hardware, software, or bothcoupling components of computer system 650 to each other. As an exampleand not by way of limitation, bus 662 may include an AcceleratedGraphics Port (AGP) or other graphics bus, an Enhanced Industry StandardArchitecture (EISA) bus, a front-side bus (FSB), a HYPERTRANSPORT (HT)interconnect, an Industry Standard Architecture (ISA) bus, an INFINIBANDinterconnect, a low-pin-count (LPC) bus, a memory bus, a Micro ChannelArchitecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, aPCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA)bus, a Video Electronics Standards Association local (VLB) bus, oranother suitable bus or a combination of two or more of these. Bus 662may include one or more buses 662, where appropriate. Although thisdisclosure describes and illustrates a particular bus, this disclosurecontemplates any suitable bus or interconnect.

Herein, reference to a computer-readable storage medium encompasses oneor more non-transitory, tangible computer-readable storage mediapossessing structure that may store a computer program or data. As anexample and not by way of limitation, a computer-readable storage mediummay include a semiconductor-based or other integrated circuit (IC)(such, as for example, a field-programmable gate array (FPGA) or anapplication-specific IC (ASIC)), a hard disk, an HDD, a hybrid harddrive (HHD), an optical disc, an optical disc drive (ODD), amagneto-optical disc, a magneto-optical drive, a floppy disk, a floppydisk drive (FDD), magnetic tape, a holographic storage medium, asolid-state drive (SSD), a RAM-drive, a Secure Digital card, a SecureDigital drive, or another suitable computer-readable storage medium or acombination of two or more of these, where appropriate. Herein,reference to a computer-readable storage medium excludes any medium thatis not eligible for patent protection under 35 U.S.C. § 101.

One or more embodiments can also be fabricated as computer readable codeon a non-transitory computer readable medium. Herein, reference tosoftware may encompass one or more applications, bytecode, one or morecomputer programs, one or more executables, one or more instructions,logic, machine code, one or more scripts, or source code, and viceversa, where appropriate.

The present disclosure encompasses all changes, substitutions,variations, alterations, and modifications to the example embodimentsherein that a person having ordinary skill in the art would comprehend.

What is claimed is:
 1. A method for executing an online game, the methodcomprising: automatically generating a plurality of dynamic quests inthe online game, each dynamic quest including one or more quest tasksand one or more quest rewards, wherein the automatically generating adynamic quests includes, selecting a quest template that includes aplurality of tasks and a plurality of rewards; selecting one or moretasks from the plurality of tasks; selecting one or more rewards fromthe plurality of rewards; and creating the dynamic quest in the onlinegame with the selected one or more tasks and the selected one or morerewards; and sending quests to a user session of the online game,wherein selecting the quest template includes selecting from a pluralityof templates for creating quests, and the quest template is selectedbased on one or more of player characteristics, player social data,experience level of the player, number of quests completed by theplayer, number of quests abandoned by the player, or player-preferredthemes, wherein operations of the method are executed by a processor. 2.The method as recited in claim 1, creating each dynamic quest isgenerated based at least in part on a profile of a player associatedwith the user session, a game state, and game history of the player. 3.The method as recited in claim 1, further including: generating anindicator for display during the user session that indicates if one ofthe provided quests is a dynamic quest or a crafted quest.
 4. The methodas recited in claim 1, wherein the quest template includes a pluralityof titles, a plurality of fiction messages, a plurality of icons for thetemplate tasks, a plurality of hints, and a plurality of icons for thetemplate rewards, wherein a subset of the fiction messages is usableonly with a subset of the plurality of titles.
 5. The method as recitedin claim 1, further including: enabling the player of the user sessionto abandon the dynamic quest; and charging a penalty in the online gameif the player abandons a predetermined number of quests.
 6. The methodas recited in claim 1, wherein selecting one or more tasks furtherincludes: selecting a task requiring an action to be performed on a gameobject; and selecting a task that is a viral request requiringassistance in the online game by another player.
 7. The method asrecited in claim 1, wherein identifying the template further includes:determining a previous template that was utilized for creating a lastdynamic quest for the player; and selecting a template different fromthe previous template to create the dynamic quest.
 8. The method asrecited in claim 1, wherein sending quests to the player furtherincludes: filtering the quests provided to a player of the user sessionto avoid delivering repetitive quests, or quests that are too difficultfor the player, or quests that are too easy for the player.
 9. Themethod as recited in claim 1, wherein selecting one or more tasksfurther includes: utilizing game related information, a profile of aplayer, and user social data to select the one or more template tasks.10. The method as recited in claim 1, wherein the dynamic quest includesa hint giving a player a clue on how to complete the selected one ormore template tasks.